//
//  VmixGridViewController.h
//  VMIX
//
//  Created by jeffs on 6/1/10.
//  Copyright 2010 Vmix Media, INC. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AQGridView.h"
#import "GetMediaListOperation.h"
#import "RootViewController.h"
#import "DetailViewController.h"

@class VmixVideo;
@class VmixCollection;
@class CollectionsPopOver;

@interface VmixGridViewController : UIViewController <AQGridViewDelegate, AQGridViewDataSource, GetMediaListOperationDelegate>{
	
    NSMutableArray * mediasArray;
    AQGridView * _gridView;
    
    VmixVideo * video;
	NSMutableDictionary *imageCache;
	AQGridView * gridView;
	
	NSMutableArray *collectionsList;
	VmixCollection *collection;
	UIPopoverController * collectionsPopOver;
	CollectionsPopOver * collectionsPopOverView;
	UIButton *collectionsButton;
	UIBarButtonItem *rightArrowButton;
	UIBarButtonItem *leftArrowButton;
	
	UIActivityIndicatorView * collectionSpinner;
	GetMediaListOperation *getMediaListOperation;
	NSOperationQueue *oppQueue;
	
	RootViewController * delegate;

}
@property (nonatomic, retain) RootViewController * delegate;
@property (nonatomic, retain) IBOutlet AQGridView * gridView;
@property (nonatomic, retain) NSMutableArray * mediasArray;
@property (nonatomic, retain) VmixVideo * video;
@property (nonatomic, retain) NSMutableDictionary *imageCache;
@property(nonatomic, retain) NSMutableArray *collectionsList;
@property(nonatomic, retain) VmixCollection *collection;
@property (nonatomic, retain) UIPopoverController * collectionsPopOver;
@property (nonatomic, retain) CollectionsPopOver * collectionsPopOverView;
@property (nonatomic, retain) UIButton *collectionsButton;
@property (nonatomic, retain) UIBarButtonItem *rightArrowButton;
@property (nonatomic, retain) UIBarButtonItem *leftArrowButton;
@property (nonatomic, retain) GetMediaListOperation *getMediaListOperation;
@property (nonatomic, retain) NSOperationQueue *oppQueue;
@property (nonatomic, retain) IBOutlet UIActivityIndicatorView * collectionSpinner;



@end
